<ul>  <li>PHP</li><li>iOS</li>  <li>Java</li><li>UI</li></ul>
<script src="jquery-1.12.4.min.js"></script><script>  $('li').each(function(index, element) {    console.log('第' + (index + 1) + '个:' + $(element).text());  });</script>